﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FtpWorkerRole.FtpServer;

namespace FtpWorkerRole.FtpCommand
{
    class QuitCommand : CommandBase
    {
        public QuitCommand(FtpSocketHandler handler)
            : base (handler)
        {            
            commandName = "QUIT";
        }

        public override void execute(String value)
        {
            String message = formatMessage(221, "Goodbye!");
            Utils.sendMessage(handler.getSocket(), message);
        }
    }
}
